package com.jxbeidou.system.menu.convert;

import com.jxbeidou.system.menu.entity.RoleDO;
import com.jxbeidou.system.menu.vo.RoleVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 角色表
*
* @author 杜晓祥 
* @since 1.0.0 2023-12-14
*/
@Mapper
public interface RoleConvert {
    RoleConvert INSTANCE = Mappers.getMapper(RoleConvert.class);

    RoleDO convert(RoleVO vo);

    RoleVO convert(RoleDO entity);

    List<RoleVO> convertList(List<RoleDO> list);

}